package com.tpp.base.client;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tpp.base.mapper.CinemaSeatMapper;
import com.tpp.comm.client.AdminCinemaSeatClient;
import com.tpp.comm.pojo.TpCinemaSeat;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class AdminCinemaSeatClientImpl implements AdminCinemaSeatClient {

    @Resource
    private CinemaSeatMapper cinemaSeatMapper;


    @Override
    public List<TpCinemaSeat> findByCinemaId(Integer cinemaId) {
        return cinemaSeatMapper.selectList(new QueryWrapper<TpCinemaSeat>().lambda().eq(TpCinemaSeat::getCinemaId,cinemaId));
    }
}
